package com.neutech.maplestory.entity;

import com.neutech.maplestory.client.MapleStoryClient;
import com.neutech.maplestory.util.ImageUtil;

import java.awt.*;

/**
 * ·@author：冯。
 * ·@version：v.1.0。
 * ·@docroot：表示产生文档的根路径。
 * ·@param：方法的参数类型。
 * ·@return：方法的返回类型。
 */
public class Base extends AbstractMapleStoryObject{
    public Image img;
    public Base(){}

    public Base(MapleStoryClient msc,int x,int y,String key){
        this.msc = msc;
        this.x = x;
        this.y = y;
        this.img = ImageUtil.getImage(key);
        this.width = img.getWidth(null);
        this.height = img.getHeight(null);
    }

    public Base(MapleStoryClient msc,int x,int y,int width,int height){
        this.msc = msc;
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
    }

    @Override
    public void draw(Graphics g) {
        g.drawImage(img,x,y,null);
        //g.drawRect(x,y,width,height);
    }

    @Override
    public void move() {
    }
}
